<style type="text/css">
.panel dl{overflow: hidden;}
.panel dl dt {display: block;background-color: #f5f5f5;border-bottom: 1px none;padding: 10px 8px;}
.panel  dl dd {float: left;padding: 8px;}
.panel dl dd a{color: blue;}
.panel dl dd a:hover{color: #ff0000; background-color: #ffffff;}
</style>
<div class="admin">
<div class="tab panel dux-box admin-panel">
    <div class="panel-head"><strong>节点管理</strong></div>
    <div class="padding border-bottom">
        <a href="{:U('add')}" class="button button-small border-green">添加节点</a>
    </div>
    <form name="myform" id="myform" action="" method="post">
    <div class="table-responsive">
        <foreach name='node' item='app'>
        <div class="app">
        <p><strong <if condition="$app['status'] eq 0">class="disable"</if>>{$app.title}</strong>&nbsp;&nbsp;[<a href="{:U('Node/add',array('pid' => $app['id'],'level' => 2))}">添加控制器</a>]&nbsp;&nbsp;
        [<a href="{:U('Node/edit',array('id' => $app['id']))}">修改</a>]&nbsp;&nbsp;
        <if condition="!$app['child']">[<a class="js-del" href="javascript:;" data="{$app['id']}" title="删除">删除</a>]</if>
        </p>
        <foreach name = "app.child" item='action'>
        <dl>
            <dt><strong <if condition="$action['status'] eq 0">class="disable"</if>>{$action.title}</strong>&nbsp;&nbsp;[<a href="{:U('Node/add',array('pid' => $action['id'],'level' => 3))}">添加方法</a>]&nbsp;&nbsp;
            [<a href="{:U('Node/edit',array('id' => $action['id']))}">修改</a>]&nbsp;&nbsp;
            <if condition="!$action['child']">[<a class="js-del" href="javascript:;" data="{$action['id']}" title="删除">删除</a>]</if>
            </dt>
            <foreach name = "action.child" item='method'>
            <dd><span <if condition="$method['status'] eq 0">class="disable"</if>>{$method.title}</span>&nbsp;&nbsp;[<a href="{:U('Node/edit',array('id' => $method['id']))}">修改</a>]&nbsp;&nbsp;[<a class="js-del" href="javascript:;" data="{$method['id']}" title="删除">删除</a>]&nbsp;&nbsp;</dd>
            </foreach>
        </dl>
        </foreach>
        </div>
        </foreach>
    </div>
    </form>
</div>
</div>
<script type="text/javascript">
    $('#myform').layer({
        deleteUrl: "{:U('Node/del')}",
    });
</script>